{% extends 'starter.html' %}



{% block title %}
    <h1>
        客户信息展示
    </h1>
  {% endblock %}


{% block content %}

<div class="container-fluid">
    <a href="{% url 'addcustomer' %}" class="btn btn-primary">添加客户</a>
    <table class="table table-bordered  table-striped table-hover">
        <thead>
        <tr>
            <th>序号</th>
            <th>qq号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>咨询课程</th>
            <th>状态</th>
            <th>销售</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
            {% for customer in all_customers %}
                <tr>
                    <td>{{ forloop.counter }}</td>
                    <td>{{ customer.qq }}</td>
                    <td>{{ customer.name }}</td>
                    <td>{{ customer.sex }}</td>
                    <td>{{ customer.course }}</td>
                    <td>{{ customer.status }}</td>
                    <td>{{ customer.consultant }}</td>
                    <td>
                        <a href="{% url 'editcustomer' customer.pk %}" > <i class="fa fa-edit fa-2x"></i> </a>
{#                        <a href="" > <i class="fa fa-remove"></i> </a>#}
{#                        <a href="" class="btn btn-danger btn-sm">删除</a>#}
                    </td>

                </tr>


            {% endfor %}



        </tbody>


    </table>

</div>



{% endblock %}




